package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 采购明细实体类
 */
@TableName("t_buyerInfo")
public class BuyerInfoBean {
    //    采购明细编号
    @TableId(value = "pk_buyerInfoId", type = IdType.AUTO)
    private Integer id;

    //    采购商品
    @TableField(exist = false)
    private ProductBean product;
    //    采购商品编号
    @TableField("fk_productId")
    private Integer productId;

    //    采购价格
    @TableField("bi_buyMoney")
    private Integer buyMoney;

    //    采购数量
    @TableField("bi_num")
    private Integer num;

    //    所属采购实体
    @TableField(exist = false)
    private BuyerBean buyer;

    //    所属采购实体编号
    @TableField("fk_buyerId")
    private Integer buyerId;

    public BuyerInfoBean() {
    }

    public BuyerInfoBean(Integer productId, Integer buyMoney, Integer num, Integer buyerId) {
        this.productId = productId;
        this.buyMoney = buyMoney;
        this.num = num;
        this.buyerId = buyerId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getBuyMoney() {
        return buyMoney;
    }

    public void setBuyMoney(Integer buyMoney) {
        this.buyMoney = buyMoney;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BuyerBean getBuyer() {
        return buyer;
    }

    public void setBuyer(BuyerBean buyer) {
        this.buyer = buyer;
    }

    public Integer getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(Integer buyerId) {
        this.buyerId = buyerId;
    }

    @Override
    public String toString() {
        return "BuyerInfoBean{" +
                "id=" + id +
                ", product=" + product +
                ", productId=" + productId +
                ", buyMoney=" + buyMoney +
                ", num=" + num +
                ", buyer=" + buyer +
                ", buyerId=" + buyerId +
                '}';
    }
}
